#include "drivers/HTCS-driver.h"

// Note: the 9V versions give the same readings
//sensorI2CCustom = 166
//sensorI2CCustomFast = 333
//sensorI2CCustomFastSkipStates = 497
task main(){
  #define colorsensor S1
  SensorType[colorsensor] = sensorI2CHiTechnicColor;

  ClearTimer(T1);
	long ticks;
	float fps;
	while(1){
	  nxtDisplayCenteredTextLine(0, ""+SensorValue[colorsensor]);
	  //nxtDisplayCenteredTextLine(0, ""+HTCSreadColor(colorsensor));

	  ticks++;
	  fps = (float)(ticks * 1000) / time1[T1];
	  nxtDisplayCenteredTextLine(4, ""+fps);
	}
}
